package com.knight.spring.bean;

import java.util.regex.Pattern;

public class Car {

    private String name;

    private Double price;

    private int weight;

    private Tire tire;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public Tire getTire() {
        return tire;
    }

    public void setTire(Tire tire) {
        this.tire = tire;
    }

    public static void main(String[] args) {
        String content = "com.knight.demo.service.impl.TestServiceImpl";

        String pattern = "com\\.knight\\.demo\\.service\\..*Service.*";
        boolean isMatch = Pattern.matches(pattern, content);
        System.out.println("字符串中是否包含了 'runoob' 子字符串? " + isMatch);
    }
}
